package Akka;

public class TicketDemo {

}

class Ticket {
    public void saleTicket() {
           
        synchronized (this) {
            //卖票
        }
    }
}